#!/bin/bash
docker-compose rm -sf

# --build: 让每次 Dockerfile 变更后，运行 start.sh 可以重新编译
docker-compose up -d --build

echo -e " \n ===================== status ================== \n"

docker-compose ps


echo -e " \n ===================== php 容器 ip ================== \n"

docker inspect php_logistics | grep IPAddress | tail -n 1

echo -e " \n ===================== nginx 容器 ip ================== \n"

docker inspect nginx_logistics | grep IPAddress | tail -n 1
